package cn.ad.server.web.spring.service.actions.command;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class ClickAndImpressionCommand {

	/**
	 * 广告点击
	 */
	public static final int HANDLETYPE_CLICK = 1;

	/**
	 * 广告展示
	 */
	public static final int HANDLETYPE_IMPRESSION = 2;

	/**
	 * 对接渠道标识，用于标识对接技术平台渠道
	 */
	private String channel;

	private String aid;
	private String sid;
	private String cid;
	private String mid;
	private String guid;
	private String lon;
	private String lat;
	private String target;
	private String downx;
	private String downy;
	private String upx;
	private String upy;
	private String ua;
	private String ip;

	@Deprecated
	private boolean imp;

	private String handleType;
	private String platform_id;
	private String source_base64;
	private String source_urlencode;

	/**
	 * 用于广点通winnotice消息的价格标识，由于广点通的winnotic 与
	 * impression事件为同一事件，目前先将变量防雨此处做特殊例外处理
	 */
	private String win_price;

	@Deprecated
	public boolean isImp() {
		return imp;
	}

	@Deprecated
	public void setImp(boolean imp) {
		this.imp = imp;
	}

	public String getAid() {
		return aid;
	}

	public void setAid(String aid) {
		this.aid = aid;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getMid() {
		return mid;
	}

	public void setMid(String mid) {
		this.mid = mid;
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getDownx() {
		return downx;
	}

	public void setDownx(String downx) {
		this.downx = downx;
	}

	public String getDowny() {
		return downy;
	}

	public void setDowny(String downy) {
		this.downy = downy;
	}

	public String getUpx() {
		return upx;
	}

	public void setUpx(String upx) {
		this.upx = upx;
	}

	public String getUpy() {
		return upy;
	}

	public void setUpy(String upy) {
		this.upy = upy;
	}

	public String getUa() {
		return ua;
	}

	public void setUa(String ua) {
		this.ua = ua;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getHandleType() {
		return handleType;
	}

	public void setHandleType(String handleType) {
		this.handleType = handleType;
	}

	public String getPlatform_id() {
		return platform_id;
	}

	public void setPlatform_id(String platform_id) {
		this.platform_id = platform_id;
	}

	public String getSource_base64() {
		return source_base64;
	}

	public void setSource_base64(String source_base64) {
		this.source_base64 = source_base64;
	}

	public String getSource_urlencode() {
		return source_urlencode;
	}

	public void setSource_urlencode(String source_urlencode) {
		this.source_urlencode = source_urlencode;
	}

	/**
	 * @return the channel
	 */
	public String getChannel() {
		return channel;
	}

	/**
	 * @param channel
	 *            the channel to set
	 */
	public void setChannel(String channel) {
		this.channel = channel;
	}

	/**
	 * @return the win_price
	 */
	public String getWin_price() {
		return win_price;
	}

	/**
	 * @param win_price
	 *            the win_price to set
	 */
	public void setWin_price(String win_price) {
		this.win_price = win_price;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
